home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Applications / xSMTP / Read Me or else! < prev    next >
Text File  |  1998-02-23  |  2KB  |  48 lines

  1. xSMTP 1.2
  2.  
  3. Fine Print:
  4. The code contained in this project is ©1997, 1998 Brian Jones.  It may be freely used in other free or personal projects.  For PGP signed permission to include smtp.π or the wrapper module code in a commercial or shareware distribution, please write to brjones@hiwaay.net.
  5.  
  6. The smtp.π project and wrapper module may be freely distributed, so long as this read me file is distributed with it.
  7.  
  8. Some ideas for the SMTP code:
  9. 1)  Use to send shareware registrations from your app.
  10. 2)  Create an easy form email CGI (when Apple events are supported).
  11. 3)  Use to send me your suggestions for upgrades or other good uses (Click on the copyright notice in the About dialog).
  12.  
  13.  
  14. Some ideas for the wrapper module:
  15. 1)  Wrap text before sending mail. (duh)
  16. 2)  Wrap text before printing.
  17. 3)  Wrap text before doing anything else that requires wrapped text.
  18.  
  19.  
  20. Brief explanation of the SMTP demo:
  21. The To: field of course holds the email address of who you are sending the mail to.  You may separate multiple email addresses with commas.
  22.  
  23. The Cc: field holds the addresses of those you wish to "carbon copy" the message to.  You may separate multiple email addresses with commas.
  24.  
  25. The From: field is used for more than one thing.  It tells the SMTP server what your ID is, and it sets the From: header.  It MUST be in the form userid@host (eg. brjones@hiwaay.net).
  26.  
  27. The SMTP server is the server you wish to relay the mail through, probably your ISP's mail server.  This is in the form of hostname.domain (eg. my SMTP server is mail.hiwaay.net).
  28.  
  29. The body is the text you wish to send.
  30.  
  31. Wrapping the body of the message is now implimented through the "wrapper" module.  Before sending the body data to the smtp window object, filter it through wrapText (body_text, max_line_length).  I suggest wrapping at 72 characters in mail applications to leave room for quote strings.
  32.  
  33.  
  34. Version History:
  35. Version 1.2
  36. - Brought the existing code up to date with CrossBasic dr1r27.
  37. - Added the ability to mail to multiple addresses
  38. - Added a Cc: header
  39.  
  40. Version 1.1
  41. - Wrapper module now works correctly if there are no carriage returns in the text.
  42. - Wrapper module will now also wrap at tabs as well as spaces
  43. - Wrapper module will now wrap text with no white spaces
  44.  
  45. Version 1.0
  46. - Gave xSMTP a name and version number.
  47. - Gave it an "About xSMTP…" dialog too, which also demonstrates how to target a previous window for changes.
  48.